<template>
  <div class="header">
    <div class="header-left"><span class="iconfont">&#xe624;</span></div>
    <div class="header-input"><span class="iconfont">&#xe632;</span> 输入城市景点游玩主题</div>
    <router-link to="/city"><div class="header-right">{{this.city}}<span class="iconfont arrow-icon">&#xe64a;</span></div></router-link>
  </div>
</template>
<script>
import { mapState,mapGetters } from 'vuex'

export default {
  data () {
    return {
    }
  },
  computed: {
    ...mapState(['city']),
    ...mapGetters(['doubleCity'])
  }
}
</script>
<style lang="scss" scoped>
@import '~styles/varibles.scss';

.header{
  height: .86rem;
  display: flex;
  background-color:$baseColor;
  color: #fff;
  line-height: .86rem;
  .header-left{
    width: .64rem;
    float: left;
    text-align: center;
  }
  .header-input{
    flex: 1;
    line-height: .64rem;
    height: .64rem;
    margin-left: .2rem;
    margin-top: .12rem;
    height: .64rem;
    background-color: #fff;
    border-radius: .1rem;
    color: #ccc;
    padding-left: .15rem;
  }
  .header-right{
    min-width: 1.04rem;
    padding: 0 .1rem;
    float: right;
    text-align: center;
    color: #fff;
    .arrow-icon{
      font-size: .16rem;
      margin-left: .1rem;
    }
  }
}
</style>


